package com.mls.fivedistrict.enums;

/**
 * 状态返回码枚举
 * Created by chenxiuxiang on 2017/12/26.
 */
public enum ResponseCode {
    SUCCESS("success", "SUCCESS"),
    ERROR("error", "ERROR"),
    NEED_LOGIN("need_login", "NEED_LOGIN"),
    ILLEGAL_ARGUMENT("illegal_argument", "ILLEGAL_ARGUMENT");

    private String code;
    private String desc;

    ResponseCode(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return this.code;
    }

    public String getDesc() {
        return this.getDesc();
    }
}
